<template>
  <a-card :bordered="false" class="card-area">
    <component :is="xh ? 'checkInfo' :'checkList'" />
  </a-card>
</template>

<script>
import checkList from './components/checkList'
import checkInfo from './components/checkInfo'

export default {
  components: {
    checkList,
    checkInfo
  },
  data () {
    return {
      showInfo: false
    }
  },
  methods: {
    toInfo () {
      this.showInfo = true
    }
  },
  computed: {
    xh () {
      return !!this.$route.query.xh
    }
  }
}

</script>
